<?php

namespace partner\functions\wechat\lib;


use partner\functions\wechat\lib\BaseWechatPartner;
use Exception;

class AdditionInfo extends BaseWechatPartner
{
    protected $upload_properties = [
        'legal_person_commitment' => 1,
        'legal_person_video' => 1,
        'business_addition_pics' => 5
    ];

    public $legal_person_commitment = '';

    public $legal_person_video = '';

    public $business_addition_pics = [];

    public $business_addition_msg = '';

    public function setLegalPersonCommitment(string $legal_person_commitment = '') 
    {
        if (!empty($legal_person_commitment)) {
            $this->legal_person_commitment = $legal_person_commitment;
        }
        return $this;
    }

    public function setLegalPersonVideo(string $legal_person_video = '') 
    {
        if (!empty($legal_person_video)) {
            $this->legal_person_video = $legal_person_video;
        }
        return $this;
    }

    public function setBusinessAdditionPics(array $business_addition_pics = []) 
    {
        if (!empty($business_addition_pics)) {
            $this->business_addition_pics = $business_addition_pics;
        }
        return $this;
    }

    public function setBusinessAdditionMsg(string $business_addition_msg = '') 
    {
        if (!empty($business_addition_msg)) {
            $this->business_addition_msg = $business_addition_msg;
        }
        return $this;
    }
}